<div class="empresas form">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Editar Registro da Empresa'); ?></h1>
			</div>
		</div>
	</div>



	<div class="row">
		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Ações</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">

								<li><?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;Deletar'), array('action' => 'delete', $this->Form->value('Empresa.id')), array('escape' => false), __('Tem certeza de que deseja excluir # %s?', $this->Form->value('Empresa.id'))); ?></li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Listar Empresas'), array('action' => 'index'), array('escape' => false)); ?></li>
	
							</ul>
						</div>
					</div>
				</div>			
		</div><!-- end col md 3 -->
		<div class="col-md-9">
			<?php echo $this->Form->create('Empresa', array('role' => 'form')); ?>
			<div class="panel panel-default">
				<h3 class="col-md-12">Empresa</h3>
				<div class="panel-body">
					<div class="form-group col-md-12">
						<?php echo $this->Form->input('Empresa.id', array('class' => 'form-control', 'placeholder' => 'Empresa Id'));?>
					</div>
					<div class="row">
						<div class="form-group col-md-12">
							<?php echo $this->Form->input('Empresa.nome', array('class' => 'form-control', 'placeholder' => 'Nome'));?>
						</div>
					</div>
					<div class="row">
						<div class="form-group col-md-4">
							<?php echo $this->Form->input('Empresa.cnpj', array('class' => 'form-control', 'placeholder' => 'Cnpj'));?>
						</div>
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Empresa.telefone', array('class' => 'form-control', 'placeholder' => 'Telefone'));?>
						</div>
						<div class="form-group col-md-5">
							<?php echo $this->Form->input('Empresa.email', array('class' => 'form-control', 'placeholder' => 'Email'));?>
						</div>
						
					</div>
					<div class="row">
						<div class="form-group col-md-7">
							<?php echo $this->Form->input('Empresa.representante', array('class' => 'form-control', 'placeholder' => 'Representante'));?>
						</div>
						<div class="form-group col-md-5">
							<?php echo $this->Form->input('Empresa.site', array('class' => 'form-control', 'placeholder' => 'Site'));?>
						</div>
						
					</div>
					<div class="form-group col-md-12">
						<?php echo $this->Form->input('Empresa.endereco_id', array('type' => 'hidden', 'class' => 'form-control', 'placeholder' => 'Representante'));?>
					</div>
				</div>
			</div>
			<div class="panel panel-default">
				<h3 class="col-md-12">Endereço</h3>
				<div class="panel-body">
					<div class="form-group col-md-10">
						<?php echo $this->Form->input('Endereco.id', array('class' => 'form-control', 'placeholder' => 'Endereco Id'));?>
					</div>
					<div class="panel-body">
					<div class="row">
						<div class="form-group col-md-10">
							<?php echo $this->Form->input('Endereco.rua', array('class' => 'form-control', 'placeholder' => 'Ex: Rua Gonçalves Faustino'));?>
						</div>
						<div class="form-group col-md-2">
							<?php echo $this->Form->input('Endereco.numero', array('class' => 'form-control', 'placeholder' => 'número'));?>
						</div>
					</div>
					<div class="row">
						<div class="form-group col-md-5">
							<?php echo $this->Form->input('Endereco.bairro', array('class' => 'form-control', 'placeholder' => 'bairro'));?>
						</div>
						<div class="form-group col-md-3">
							<?php echo $this->Form->input('Endereco.cep', array('class' => 'form-control', 'placeholder' => 'cep ex: 79370000'));?>
						</div>
						<div class="form-group col-md-4">
							<?php echo $this->Form->input('Endereco.complemento', array('class' => 'form-control', 'placeholder' => 'complemento'));?>
						</div>
					</div>
					<div class="row">
						<div class="form-group col-md-5">
							<?php echo $this->Form->input('Endereco.cidade_id', array('class' => 'form-control'));?>
						</div>
					</div>
				</div>
			</div>
			</div>
				<div class="form-group">
					<?php echo $this->Form->submit(__('Submit'), array('class' => 'btn btn-default', 'value' => 'Salvar')); ?>
				</div>

			<?php echo $this->Form->end() ?>

		</div><!-- end col md 12 -->
	</div><!-- end row -->
</div>
